{// 引入标签库 }
<tagLib name="html" />
<script type="text/javascript">
    $('#coin_edit').unbind().bind('click',function () {
        var user_id = parseInt($("input[name='user_id']").val());
        var begin_time = parseInt($("input[name='begin_time']").val());
        var end_time = parseInt($("input[name='end_time']").val());
        var game_id = parseInt($("input[name='game_id']").val());
        $.post(ROOT+'?'+VAR_MODULE+'='+MODULE_NAME+'&'+VAR_ACTION+'=addLog', {user_id : user_id,begin_time:begin_time,end_time:end_time,game_id:game_id}, function (data) {
            alert(data.error);
            location.reload();
        },'json');
    })
</script>
<div class="main">
<div class="main_title">二级单位用户:{$user_info.nick_name}</div>
<div class="blank5"></div>
<form name="edit" action="__APP__" method="post" enctype="multipart/form-data">
<table class="form" cellpadding=0 cellspacing=0>
    <tr>
        <td colspan=2 class="topTd"></td>
    </tr>
    <tr>
        <td class="item_title">游戏币回收:</td>
        <td class="item_input">
        <span class='tip_span'>此操作将会回滚 {:to_date($begin_time)} 至 {:to_date($end_time)} “{$games[$game_id]}”游戏结算，总计退还主播总计{$res1.total_ticket}印票,玩家{$res2.user_gain}游戏币，二级单位{$res2.gain}游戏币，一级单位{$res2.promoter_gain}游戏币</span>
        </td>
    </tr>
    <tr>
        <td class="item_title">&nbsp;</td>
        <td class="item_input">
            <!--隐藏元素-->
            <input type="hidden" name="user_id" value="{$user_id}" />
            <input type="hidden" name="begin_time" value="{$begin_time}" />
            <input type="hidden" name="end_time" value="{$end_time}" />
            <input type="hidden" name="game_id" value="{$game_id}" />
            <!--隐藏元素-->
            <input type="button" id="coin_edit" class="button" value="{%OK}" />
            <input type="reset" class="button" value="{%RESET}" />
        </td>
    </tr>
    <tr>
        <td colspan=2 class="bottomTd"></td>
    </tr>
</table>
</form>
</div>
